package coco.wx.com.exception;

import lombok.Data;

/**
 * @author srx
 */
@Data
public class BizException extends RuntimeException {

    private String code;

    public BizException(String message) {
        super(message);
    }

    public BizException(String code, String message) {
        super(message);
        this.code = code;
    }

    public BizException(Throwable cause) {
        super(cause);
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
    }
}
